package com.zby.CloudGallery.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 空间用户关联
 *
 * @author zby
 * @email 2069189112@qq.com
 * @date 2025-02-13 22:01:11
 */
@Data
@TableName("space_user")
public class SpaceUserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 空间 id
	 */
	private Long spaceid;
	/**
	 * 用户 id
	 */
	private Long userid;
	/**
	 * 空间角色：viewer/editor/admin
	 */
	private String spacerole;
	/**
	 * 创建时间
	 */
	private Date createtime;
	/**
	 * 更新时间
	 */
	private Date updatetime;

}
